import { postRequest, getRequest, deleteRequest } from '/@/lib/axios';

// 查询电子围栏信息列表
export function listFenceInfo(query) {
  return getRequest('/fenceSys/fenceInfo/list', query)
}

// 查询电子围栏信息详细
export function getFenceInfo(fenceId) {
  return getRequest(`/fenceSys/fenceInfo/${fenceId}`)
}

// 新增电子围栏信息
export function addFenceInfo(data) {
  return postRequest('/fenceSys/fenceInfo', data)
}

// 修改电子围栏信息
export function updateFenceInfo(data) {
  return postRequest('/fenceSys/fenceInfo', data)
}

// 删除电子围栏信息
export function delFenceInfo(fenceId) {
  return deleteRequest(`/fenceSys/fenceInfo/${fenceId}`)
}
